package behaviorpattern.memento.demo1;

public class Client {
	public static void main(String[] args) {
		GameRole role = new GameRole();
		role.initialState();
		role.stateDisplay();
		
		RoleStateCaretaker taker = new RoleStateCaretaker();
		taker.setRoleStateMemento(role.saveState());
		
		role.fight();
		role.stateDisplay();
		
		role.recoveryState(taker.getRoleStateMemento());
		role.stateDisplay();
	}
}
